﻿<%@ Page Language="C#" MasterPageFile="~/back/Site.master" AutoEventWireup="true"
    CodeFile="AddNewsLetter.aspx.cs" Inherits="back_AddNewsLetter" ValidateRequest="false" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('.cleditor').cleditor();
        });
    </script>
    <div class="page-header">
        <h1>
            Add Newsletter</h1>
    </div>
    <div id="divMessage" runat="server">
    </div>
    <div class="control-group">
        <label class="control-label">
            Subject</label>
        <div class="controls">
            <asp:TextBox ID="txtSubject" runat="server" CssClass="input-xlarge"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvSubject" runat="server" ErrorMessage="Please enter subject"
                ControlToValidate="txtSubject" Display="Dynamic"></asp:RequiredFieldValidator>
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            Content</label>
        <div class="controls">
            <textarea class="cleditor" id="txtPageContent" rows="3" runat="server"></textarea>
            <asp:RequiredFieldValidator ID="rfvPageContent" runat="server" ErrorMessage="Please enter page content"
                ControlToValidate="txtPageContent" Display="Dynamic"></asp:RequiredFieldValidator>
        </div>
    </div>
    <div class="form-actions">
        <asp:Button ID="btnSubmit" runat="server" CssClass="btn btn-primary" Text="Submit"
            OnClick="btnSubmit_Click" />
    </div>
</asp:Content>
